<html>
<head>
    <title>qClient Load JS Test</title>
    <script>imagePath='../';wrroot='../';scriptPath='../';contextPath='';</script>
    <script src="../qCore.js"></script>
    <script src="../qBase.js"></script>
    <style>
    </style>
    <script>
        function bodyLoaded(){
          // Test 1 - Basic
//            pc("do1 = "+ _myclient.do1)
          
            _myclient.test1()
            
            
        }
        
        var MyClient = QClient.extend({
            base_constr :function MyClient_base_constr(name) {pc("called")
                var t=this
                t.base({
                    instance: t
                   ,name: name
                   ,qcName: "_myclient"
                })
            }
            
            ,test1: function MyClient_test1(){
                var t=this
                t.jsloader.loadJS("TestJS1", "qBase_dynLoadJS1.js", t.basic_cb, ["arg1", "arg2"])
                t.jsloader.loadJS("TestJS2", "qBase_dynLoadJS2.js", t.basic_cb, ["arg1", "arg2"])
                t.jsloader.loadJS("TestJS3", "qBase_dynLoadJS3.js", t.basic_cb, ["arg1", "arg2"])
                t.jsloader.start()
            }

            ,constructor: function MyClientl_constructor(name) {pc("called");
                this.base_constr(name)
            }
            ,basic_cb: function basic_cb(aArgs, rStats){
                
                pc(
                     "Called"
                    +"\n aArgs:\n"+s$.pad(q$.dump(aArgs))
                    +"\n rStats = "+s$.pad(q$.dumpObj(rStats))
                );
                
                pc("do1 = "+ _myclient.do1)

            } 
            ,errorNotifier: function MyClient_errorNotifier(sMsg){
                pc(sMsg)
                
            }
        });
        
        _myclient=new MyClient('_myclient'); 
        
    </script>
</head>

<body>
	<script>
        bConsole=true; __qcOpts={cb:true, t:0, w: 600, h: 500}
	    _SCR_START=" bodyLoaded();"; function __start() {try{if(bConsole){startCons(__qcOpts); _w.consoleLoaded = function consoleLoaded(){ setTimeout(_SCR_START,50) }}else{eval(_SCR_START)}}catch(e){debugErr(e)}};__start()
    </script>
</body>
</html>